
layui.use(['layer','laydate'], function(){

});

var wnMachineToolLinkConsoleGrid =new consoleGrid({table_id:"wnMachineToolLink"});
wnMachineToolLinkConsoleGrid.init();
function wnMachineToolLinkTableOperate(value){
return "<button type='button' class='btn btn-xs btn-default command-edit' onclick='consoleOpenWindow(\"wnMachineToolLink\",\"/console/wn_machine_tool_link/edit?id="+value+"\",\"编辑\")'><span class='glyphicon glyphicon-pencil'></span></button> ";
}
function wnMachineToolLinkLoadParam(params){
params.query=wnMachineToolLinkQueryString();
return params;
}
function wnMachineToolLinkQueryString() {
var objQuery = new Object();
    objQuery.machineToolId=$('#machineToolId').val()==''?null:$('#machineToolId').val(); 
     objQuery.machineId=$('#machineId').val()==''?null:$('#machineId').val(); 
 
var queryString = JSON.stringify(objQuery);
return queryString;
}

